

//手机号遮掩
export function maskPhone(phone:string) {
  if (phone.length != 11){
    throw new Error('手机号长度有误')
  }
  return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
}
